<script setup lang="ts">
import { tryJsonParse } from '@great/utils';
import { createContext, DEFAULT_SCHEMA, UIDesignerRender } from '@great/designer';
import { cloneDeep } from 'lodash-es';

const uiSchema = reactive(tryJsonParse(localStorage.getItem('_test_page_schema')!, cloneDeep(DEFAULT_SCHEMA)));
const context = createContext();
</script>
<template>
    <UIDesignerRender :context="context" :ui-schema="uiSchema" />
</template>

<style scoped></style>
